<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>管理首页</title>
    <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-default/index.css">
    <link rel="stylesheet" href="/static/css/index.css">
</head>
<body>
<div class="bigbox" id="app">
    <el-menu :default-active="activeIndex" class="el-menu-demo pagehead" mode="horizontal" @select="handleSelect" theme="dark">
        <el-menu-item index="0">
            <el-switch
                    v-model="isCollapse"
                    on-color="#13ce66"
                    off-color="#ff4949"
                    off-text="关闭"
                    on-text="打开">
            </el-switch>
        </el-menu-item>
        <div style="float: right">
            <el-menu-item index="1">处理中心</el-menu-item>
            <el-submenu index="2">
                <template slot="title">我的工作台</template>
                <el-menu-item index="2-1">选项1</el-menu-item>
                <el-menu-item index="2-2">选项2</el-menu-item>
                <el-menu-item index="2-3">选项3</el-menu-item>
            </el-submenu>
            <el-menu-item index="3"><a href="https://www.ele.me" target="_blank">订单管理</a></el-menu-item>
        </div>
    </el-menu>

    <div class="pagebody">
        <el-menu default-active="1-4-1" class="pagenav" @open="handleOpen" @close="handleClose" :collapse="isCollapse" theme="dark">
            <el-submenu index="1">
                <template slot="title">
                    <i class="el-icon-message"></i>
                    <span slot="title">导航一</span>
                </template>
                <el-menu-item-group>
                    <span slot="title">分组一</span>
                    <el-menu-item index="1-1">
                        <router-link to="/my/test">选项一</router-link>
                        <!--选项一-->
                    </el-menu-item>
                    <el-menu-item index="1-2">
                        <router-link to="/my/test2">选项二</router-link>
                        <!--选项2-->
                    </el-menu-item>
                </el-menu-item-group>
                <el-menu-item-group title="分组2">
                    <el-menu-item index="2-3">选项3</el-menu-item>
                </el-menu-item-group>
                <el-submenu index="1-4">
                    <span slot="title">选项4</span>
                    <el-menu-item index="1-4-1">选项1</el-menu-item>
                </el-submenu>
            </el-submenu>
            <el-menu-item index="2">
                <i class="el-icon-menu"></i>
                <span slot="title">导航二</span>
            </el-menu-item>
            <el-menu-item index="3">
                <i class="el-icon-setting"></i>
                <span slot="title">导航三</span>
            </el-menu-item>
        </el-menu>
        <!--容器-->
        <div class="pagecontent">
            <router-view></router-view>
        </div>
    </div>

</div>

<script src="/static/js/sys/vue.js"></script>
<script src="/static/js/sys/vue-router.js"></script>
<script src="//unpkg.com/element-ui@1.4.4/lib/index.js"></script>
<script src="/static/js/com/index.js"></script>

</body>
</html>